#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>
using namespace std;
#include"BSTree.h"


void test_BSTree()
{
	int a[] = { 8, 3, 1, 10, 6, 4, 7, 14, 13 };
	BSTree<int> t1;
	for (auto e : a)
	{
		t1.Insert(e);
	}
	BSTree<int> t2(t1);
	t2.InOrder();
	//for (auto e : a)
	//{
	//	t1.EraseR(e);
	//	t1.InOrder();
	//	cout << endl;
	//}
	//t1.InOrder(t1.GetRoot());
	//t1.InOrder();
	//cout << endl;
	//t1.Erase(4);
	//t1.InOrder();
	//cout << endl;
	//t1.Erase(14);
	//t1.InOrder();
	//cout << endl;
	//t1.Erase(3);
	//t1.InOrder();
	//cout << endl;
	//cout << endl;
	//t1.Erase(8);
	//t1.InOrder();


}
int main()
{
	test_BSTree();
	return 0;
}